﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CloudStorageLight.Core.Tests
{

    [TestClass]
    public　class MsOffCryptoUtilTest
    {

        [TestMethod]
        public void SetPasswordTest()
        {

            MsOffCryptoUtil.IsEncryptedPackage("Data\\CryptoTest.xlsx");

            File.Copy("Data\\CryptoTest.xlsx", "CryptoTest2.xlsx", true);

            MsOffCryptoUtil.SetPassword("CryptoTest2.xlsx", "Password");

            MsOffCryptoUtil.SetPassword("CryptoTest2.xlsx", "Password");
        }
    }
}
